class Nota < ActiveRecord::Base
  acts_as_paranoid unless SHOW_DELETED
  belongs_to :nota_ref, :polymorphic => true
  has_many :allegati, :as => :allegato_ref, :dependent => :destroy
  validates_presence_of :testo
  def name
    testo
  end
end
